import java.util.function.BiConsumer
import java.util.function.ObjIntConsumer
import java.util.function.Supplier
import java.util.stream.Stream
import kotlin.jvm.internal.Ref

//fun longestConsec(ss: Array<String>, n: Int): String {
//    if (ss.isEmpty() || n > ss.size || n <= 0) return ""
//    var some = 0
//    var size = 0
//    for ((index, i) in (n..ss.size).withIndex()) {
//        (index until i).sumBy { ss[it].length }.takeIf { it > size }?.let { size = it; some = index }
//    }
//    return ss.toList().subList(some, some + n).joinToString("")
//}

fun main(args: Array<String>) {
}

//fun orderWeight(string: String) = string.split(" ")
//        .sortedWith(compareBy<String> { it.sumBy { it.toString().toInt() } }.thenBy { it })
//        .joinToString(" ")